package com.example.cloudproviderorder80.config;

import org.springframework.boot.autoconfigure.http.HttpMessageConverters;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.cloud.openfeign.support.SpringEncoder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

import java.beans.Encoder;

@Configuration
public class AppicatonContextConfig {
    @Bean
    @LoadBalanced //负载均衡
    public RestTemplate getRestTmpate() {
        return new RestTemplate();
    }

}
